//
//  MainViewController.h
//  Browser
//
//  Created by eric on 10/23/14.
//  Copyright (c) 2014 eric. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "DBManager.h"
#import "PhotoViewController.h"

@interface MainViewController : UIViewController<UIWebViewDelegate,UITextFieldDelegate, UIGestureRecognizerDelegate, UIAlertViewDelegate>
{
    DBManager *dbManger;
   NSString *currentURL;
   NSString *_currentIMGURL;
}
    @property (strong,nonatomic) UIWebView *webView;
    @property (strong, nonatomic) UITextField *txtWebSite;
    @property (strong, nonatomic) UIButton *btnBack;
    @property (strong, nonatomic) UIButton *btnForward;
    @property (strong, nonatomic) UIButton *btnReload;
    @property (strong, nonatomic) UIButton *btnGo;
    @property (strong, nonatomic) UIButton *btnHome;
    @property (strong, nonatomic) UIButton *btnListImage;
    @property (strong, nonatomic) UIButton *btnTest;
    @property (strong, nonatomic) UIActivityIndicatorView *indicator ;
- (void) loadUIWebView;
- (void) saveImage;
- (IBAction) buttonGo:(id)sender;
- (IBAction) buttonBack:(id)sender;
- (IBAction) buttonForward:(id)sender;
- (IBAction) buttonReload:(id)sender;
- (IBAction) buttonHome:(id)sender;
- (IBAction) buttonListImage:(id)sender;
- (IBAction) buttonTest:(id)sender;

- (BOOL) textFieldShouldReturn:(UITextField *)textField;

- (void) loadURL: (NSString *) url;
@end


